﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PosuvnikyTest.Models;
using PosuvnikyTest.Services;

namespace PosuvnikyTest.Controllers
{
    public class PosuvnikyController : Controller
    {
        private readonly IDefaultSettingsService _defaultSettingsService = new DefaultSettingsService();

        public PosuvnikyController(IDefaultSettingsService defaultSettingsService)
        {
            _defaultSettingsService = defaultSettingsService;
        }
        public PosuvnikyController(){}

        public ActionResult Index()
        {
            DefaultSettings model = _defaultSettingsService.GenerateDefaultSettings();
            return View(model);
        }

       
    }
}
